<template>
  <div class="payment-animation">
    <div class="loader"></div>
    <p>{{ message }}</p>
  </div>
</template>

<script>
export default {
  props: {
    message: {
      type: String,
      default: '正在处理支付，请稍候...'
    }
  }
};
</script>

<style scoped>
.payment-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #07c160;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

p {
  margin-top: 20px;
  font-size: 16px;
  color: #333;
}
</style>
